package com.yjd.bi.market.service;

import com.yjd.comm.base.service.IBaseService;

import java.util.Map;

import com.yjd.bi.market.model.MarketStatisticsModel;
import com.yjd.bi.report.enums.TimeType;
import com.yjd.bi.report.model.EChartsModel;

/**
 * <b>description</b>：资金量记录业务接口<br>
 * <b>time</b>：2016-05-25 10:23:24 <br>
 * <b>author</b>：  chenpengfei@yijeidai.com
 */
public interface IMarketStatisticsService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public MarketStatisticsModel insert(MarketStatisticsModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(MarketStatisticsModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	

	/**
	 * 充值
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Integer recharge_account(Map<String, Object> paramMap)
			throws Exception;
	
	/**
	 * 注册
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Integer register_account(Map<String, Object> paramMap)
			throws Exception;
	
	/**
	 * 投资
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Integer invest_account(Map<String, Object> paramMap)
			throws Exception;
	
	/**
	 * 投资金额
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Double invest_price(Map<String, Object> paramMap)
			throws Exception;
	
	/**
	 * 充值金额
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Double recharge_price(Map<String, Object> paramMap)
			throws Exception;
	
	
	/**
	 * 总览
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Double getSumm(Map<String, Object> paramMap)
			throws Exception;

	/**
	 * 统计
	 * 
	 * @param timeType
	 * @param timeFrom
	 * @param field
	 * @return
	 * @throws Exception
	 *             EChartsModel
	 */
	public EChartsModel getDates(TimeType timeType, Long timeFrom, String field,Long channel_id)
			throws Exception;

}
